 // 原型链问题一：包含引用类型值的原型属性会被所有实例共享。
function SuperType(){
  this.colors = ["red", "blue", "green"];
}

SuperType.prototype.getSuperValue=function(){
  return this.property;
}

function SubType(){
  // 继承了SuperType
  SuperType.call(this);
}

const instance1 =new SubType();
instance1.colors.push('black');

console.log(instance1.colors)//"red, blue, green,black"

const instance2= new SubType();
console.log(instance2.colors) //"red, blue, green"